<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://player.polyv.net/resp/vod-player/latest/player.js"></script>
  <style>
    html, body { margin: 0; padding: 0; width: 100%; height: 100%; }
    #player { width: 100%; height: 100%; }
  </style>
</head>
<body>
  <div id="player"></div>
  <script>
    // 从URL参数中获取vid
    function getQueryParam(name) {
      const urlParams = new URLSearchParams(window.location.search);
      return urlParams.get(name);
    }
    
    // 初始化播放器
    const vid = getQueryParam('vid');
    if (vid) {
      var player = polyvPlayer({
        wrap: '#player',
        width: '100%',
        height: '100%',
        vid: vid
      });
    }
  </script>
</body>
</html> 